//
//  AlertMgr.h
//  CarCare
//
//  Created by ileo on 14-8-17.
//  Copyright (c) 2014年 baozun. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, TYPE_VIEW){
    
    TYPE_VIEW_WAIT = 1217,
    TYPE_VIEW_ALERT,
    TYPE_VIEW_POPUP,
    TYPE_VIEW_MOMENT,
    
};

@interface AlertMgr : NSObject

/**
 *  使对应弹出框消失
 */
+(void)dismiss:(TYPE_VIEW)type;

/**
 *  弹出等待提示框 居中
 */
+(void)showWaiting;

/**
 *  弹出自定义视图框 居中
 */
+(void)showView:(UIView *)view;

/**
 *  弹出自定义视图框 居中 并且可以点击黑色区域消失此view
 */
//+(void)showViewAndExitGesture:(UIView *)view;

/**
 *  从底部弹出自定义框 底部空隙bottom
 */
+(void)showPopupView:(UIView *)view bottom:(CGFloat)bottom;

/**
 *  弹出提示框 并自动消失
 */
+(void)showShortImage:(UIImage *)image Tips:(NSArray *)tips;
+(void)showShortImage:(UIImage *)image Tips:(NSArray *)tips time:(NSInteger)time;
+(void)showShortTextTips:(NSArray *)tips;
+(void)showShortTextTips:(NSArray *)tips time:(NSInteger)time;
+(void)showShortSuccessTextTips:(NSArray *)tips;//成功提示
+(void)showShortWarnTextTips:(NSArray *)tips;//失败提示
//+(void)showShortReloadTextTips:(NSArray *)tips;//加载提示
+(void)showShortNoNetworkTextTips:(NSArray *)tips;//无网络提示
+(void)showShortNormalTextTips:(NSArray *)tips;//通用提示
@end
